RGBImage

constructor(yuv420Image: Image, zone: Rect)

Converts a YUV-420-888 Image to RGB-888

There is 4 times more data in Y than in U or V pixel stride for U and V is 2 or 1

Parameters

yuv420Image

YUV420 image representation to convert

zone

Zone to crop


constructor(yuv420: ByteArray, originalWidth: Int, originalHeight: Int, scanningRect: Rect)

Converts a YUV-420 NV21 legacy buffer to RGB-888

Parameters

yuv420

YUV420 N21 byte array to convert

originalWidth

Width of the image

originalHeight

Height of the image

scanningRect

Zone to crop